import React from "react";

interface IProps {
  name: string;
  title: string;
}

const withMyHoc = (WraperComponent: any) => {
  return (props: IProps) => {
    return <WraperComponent {...props} extraProp="extraValue" />;
  };
};

export default withMyHoc;